﻿using SCG.General;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace SCG.WinForms
{
    public static class SCGColorExtensions
    {
        public static Color ToColor(this SCGColor color)
        {
            return Color.FromArgb(color.A, color.R, color.G, color.B);
        }

        public static string Code(this Color color)
        {
            return color.A + "," + color.R + "," + color.G + "," + color.B;
        }

        public static SCGColor ToSCGColor(this Color color)
        {
            return new SCGColor(color.R, color.G, color.B);
        }
    }
}
